package com.yinhai.asynctask;

import java.util.List;
import java.util.Map;

import org.jivesoftware.smack.XMPPConnection;
import org.json.JSONException;
import org.json.JSONObject;

import android.content.Context;
import android.widget.SimpleAdapter;

import com.yinhai.model.IMUserGroup;

public class DeleteGroupTask extends AsyncTaskForHttpProcess {
	String retStr = null;
	private Context context;
	private List<Map<String, String>> datas;
	private SimpleAdapter adapter;
	List<IMUserGroup> phoneList;
	private String createUserPhone;
	private String groupName;
	private String groupId;

	public DeleteGroupTask(Context context, List<Map<String, String>> datas,
			SimpleAdapter adapter, List<IMUserGroup> phoneList,
			String createUserPhone, String groupName, String groupId) {
		super(context, false);
		this.context = context;
		this.datas = datas;
		this.adapter = adapter;
		this.phoneList = phoneList;
		this.createUserPhone = createUserPhone;
		this.groupName = groupName;
		this.groupId = groupId;
	}

	public DeleteGroupTask(Context context, boolean autoForword) {
		super(context, autoForword);
	}

	public DeleteGroupTask(Context context, int timeoutRequestCount,
			boolean autoForword) {
		super(context, timeoutRequestCount, autoForword);
	}

	@Override
	protected void parse(Map<String, Object> result) {
		this.retStr = (String) result.get(AsyncTaskContext.RESPONSE_CONTENT);
		JSONObject jo;
		XMPPConnection connection = null;
		try {
			jo = new JSONObject(retStr);
			JSONObject jo1 = null;
			if ("0".equals(jo.getString("status"))) {

			}
		} catch (JSONException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

	}
}
